package com.eobard.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.eobard.entity.Permission;
import com.eobard.mapper.PermissionMapper;
import com.eobard.service.PermissionService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Eobard Thawne
 * @since 2022-07-31
 */
@Service
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements PermissionService {

    /**
     * 根据用户ID查询对应的权限菜单列表
     */
    @Override
    public List<Permission> findPermissionByUserId(Long userId) {
        return baseMapper.findPermissionByUserId(userId);
    }
}
